import '@/App.css';
import Home from "@/views/Home";
import Player from "@/views/Player";
import My from "@/views/My";
import Community from "@/views/Community";
import Attention from "@/views/Attention";
import { Redirect, Route,Switch } from 'react-router-dom';

function App() {
  return (
    <>
      <Switch>
        <Redirect exact={true} from="/" to="/Home"></Redirect>
        <Route path="/Home" component={Home}></Route>
        <Route path="/Player" component={Player}></Route>
        <Route path="/My" component={My}></Route>
        <Route path="/Community" component={Community}></Route>
        <Route path="/Attention" component={Attention}></Route>
      </Switch>
    </>
  );
}

export default App;
